/**
 * 
 */
package com.cms.service;

import java.util.List;

import com.cms.model.AppPointEntry;
import com.cms.model.AppPointOfBilling;
import com.cms.model.AppPointTerraceInfo;

public interface AppPointOfBillingService 
{
	public AppPointOfBilling getAppPointOfBilling(int id);
	public List<AppPointOfBilling> getAppPointOfBillings();
	public List<AppPointOfBilling> getAppPointOfBillingOfAppNumber(String appnumber,String code);
	public List<AppPointOfBilling> getAppPointOfBillingOfAppNumber(String appnumber);
	public AppPointOfBilling getgetAppPointOfBilling(String appversionnumber,String code);
	boolean saveAppPointOfBilling(String type, AppPointOfBilling model);
	
	
	/**
	 * 根据应用计费点Id查找平台信息
	 * @param channelId
	 * @return
	 */
	public List<AppPointTerraceInfo> getByAppPointId(Integer appPointId);
	
	//更新应用计费点与平台信息
	public boolean updateAppPointTerraceInfo(AppPointOfBilling appPoint,List<AppPointTerraceInfo> appPointTerraceInfos);
	
	//添加应用计费点信息时,且添加应用计费点平台关联信息
	public boolean insertAppPointTerraceInfo(AppPointOfBilling appPoint,List<AppPointTerraceInfo> appPointTerraceInfos);
	
	boolean deleteAppPoint(AppPointOfBilling appPoint);
	//查找应用计费点和平台的信息
	public List<AppPointTerraceInfo> queryAppPointTerrace(int appversionId);
	/**
	 * 根据应用查找到相对应的计费点
	 * @return
	 */
	public List<AppPointOfBilling> queryAppPoint(String appnumber);
	
	//pointentry
	public List<AppPointEntry> getPointEntryByModel(AppPointEntry model);
	public boolean savePointEntry(String type,AppPointEntry model);
	
	
}
